<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CommonAdsense extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('common_adsense');
        Schema::create('common_adsense', function (Blueprint $table){
            $table->increments('id')->comment("广告位ID");
            $table->string('alias')->comment("英文别名");
            $table->integer('width')->comment("广告位宽度");
            $table->integer('height')->comment("广告位高度");
            $table->integer('size')->comment("媒体大小(KB)");
            $table->integer('create_time')->comment("创建时间");
            $table->integer('update_time')->comment("更新时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
